/**
 * 项目名称：MSHF
 * 包名称：com.mt.edu.domain
 * 文件名称：Course2Student.java
 */
package com.mt.edu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 类名称：Course2Student <br>
 * 类描述： 每个学生学习的课程<br>
 * 创建人： 马腾 <br>
 * 创建时间：Apr 28, 2014 8:58:50 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Apr 28, 2014 8:58:50 PM <br>
 */

@Entity
@Table(name="OL_COURSE_STUDENT")
public class Course2Student implements Serializable {
	
	private static final long serialVersionUID = -6906596169329124464L;

	@Id
	@Column(name = "CT_ID")
	private String id;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="COURSES_ID")
	private Course course;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="STUDENT_ID")
	private Student student;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="CLASSES_ID")
	private Classes classes;
	
	@Column(name = "LEARNED_TIME_LONG")
	private Integer learnedTimeLong;//已学习时长
	
	@Column(name = "LEARN_STATUS")
	private Short learnedStatus;//学习状态（1:上线、2:下线）
	
	@Column(name = "LEARN_OVER_STATUS")
	private Short overStatus;//完成状态：0:未完成、1:已完成
	
	@Column(name = "LEARN_NOTES")
	private String notes;//学生笔记内容

	@Column(name = "CREATE_DT")
	private Date createDt;
	
	@Column(name = "UPDATE_DT")
	private Date updateDt; 
	
	@Column(name = "OPERATOR")
	private String operator;
	
	@Column(name = "RESERVED1")
	private String reserved1;
	
	@Column(name = "RESERVED2")
	private String reserved2;
	
	@Column(name = "RESERVED3")
	private String reserved3;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Classes getClasses() {
		return classes;
	}

	public void setClasses(Classes classes) {
		this.classes = classes;
	}

	public Integer getLearnedTimeLong() {
		return learnedTimeLong;
	}

	public void setLearnedTimeLong(Integer learnedTimeLong) {
		this.learnedTimeLong = learnedTimeLong;
	}

	public Short getLearnedStatus() {
		return learnedStatus;
	}

	public void setLearnedStatus(Short learnedStatus) {
		this.learnedStatus = learnedStatus;
	}

	public Short getOverStatus() {
		return overStatus;
	}

	public void setOverStatus(Short overStatus) {
		this.overStatus = overStatus;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getUpdateDt() {
		return updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

}
